﻿@model IPageable<XPressify.Models.PageModel>
@using Omu.Awesome.Core;
@using Omu.Awesome.Mvc.Helpers;
@using XPressify.Controllers

@{
    ViewBag.Title = "Pages";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2 style="color:#222;">Pages</h2>

<p>
    @(Html.MakePopupForm<PageController>(o => o.PageCreate(), "Create page", 500, 550, true, "Create", null, null, null, null, false, null, false))
    @(Html.PopupFormActionLink<PageController>(o => o.PageCreate(), "Create page"))
</p>

<br />

<table>
@foreach (var item in Model.Page)
{
    
    <tr>
        <td style="font-weight:bolder;font-size:14px">
            @Html.ActionLink(item.Page.Name, "PageDetails", "Page", new { id = item.Page.Id }, new { @class = "nobtn"})            
        </td>
    </tr>
    
}
</table>

@Html.Pagination()